import { createApp } from 'vue'
import App from './App.vue'
import router from './router'

// 引入 Tailwind CSS
import './assets/tailwind.css'

// 引入 Font Awesome
import '@fortawesome/fontawesome-free/css/all.min.css'
// main.js
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

// 引入 Chart.js
import Chart from 'chart.js/auto'

// src/main.js
import 'element-plus/dist/index.css'
const app = createApp(App)
app.use(router)
app.provide('Chart', Chart)
// 注册所有图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(ElementPlus)
app.mount('#app')

